package com.hyh.spring.service;

import com.hyh.spring.domain.CommonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @BelongsPackage: com.hyh.spring.service
 * @ClassName StorageService
 * @Author: hyhWTX
 * @CreateTime: 2023-06-05  17:38
 * @Description: TODO (一句话描述以下该类的功能)
 * @Version: 1.0
 */
@FeignClient(value = "seata-storage-service")
public interface StorageService {
    @PostMapping(value = "/storage/decrease")
    CommonResult decrease(@RequestParam("productId") Long productId, @RequestParam("count") Integer count);
}
